/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.persistance;

import commonlib.domain.Corpus;
import java.io.FileNotFoundException;
import java.io.IOException;
import nominalitzacions.domain.UrlDomainController;

/**
 *
 * @author genis
 */
public class VerbCorpusPersistanceController {
    private VerbCorpusDataManager VCDM;
    private UrlDomainController UDC;

    public VerbCorpusPersistanceController() throws IOException {
        UDC = new UrlDomainController();
        VCDM = new VerbCorpusDataManager(UDC.getLanguages() + "corpus");
    }

    public Corpus loadCorpus(String path) throws FileNotFoundException, IOException {
        return VCDM.readCorpus();
    }

    public void saveCorpus(Corpus c) throws IOException {
        VCDM.writeCorpus(c);
    }



}
